import Koa from 'koa';
import { useControllers } from './router/index.js';
import { sync } from './db/index.js';

await sync()

const app = new Koa()

useControllers(app)

app.listen(5000)
console.log(`服务器运行于：http://localhost:5000`);
